package com.mm.service;

import com.mm.exception.ServiceException;
import com.mm.model.Protection;

/**
 * 保障service
 *
 * @date 2018/7/19 16:32
 */
public interface ProtectionService {

	/**
	 * 保存保障
	 *
	 * @param protection Protection
	 */
	void saveProtection(Protection protection);

	/**
	 * 更新保障
	 *
	 * @param protection Protection
	 */
	void updateProtection(Protection protection);

	/**
	 * 获取保障
	 *
	 * @param protectionId 保障ID
	 * @return Protection
	 */
	Protection getOneProtectionById(Long protectionId) throws ServiceException;

	/**
	 * 通过保障ID删除保障
	 *
	 * @param protectionId 保障ID
	 */
	void deleteProtectionById(Long protectionId) throws ServiceException;
}
